import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class CupertinoActivityIndicatorDemo extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('CupertinoActivityIndicator'),
        centerTitle: true,
      ),
      body: Center(
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.center,
          mainAxisAlignment: MainAxisAlignment.center,
          children:<Widget>[
            CupertinoActivityIndicator(
              animating: true,
              radius: 20,
            ),
            SizedBox(height: 20,),
            CupertinoActivityIndicator.partiallyRevealed(
              radius: 20,
              progress: 0.5,
            ),

          ],
        ),
      ),
    );
  }
  
}